using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Text;

namespace Deloitte.MSExcel
{
    public class NumberFormatMappingDictionary : StringDictionary
    {           
        public NumberFormatMappingDictionary()
        {
      
        }
        /// <summary>
        /// Adds a value to the Excel Number Mapping Dictionary
        /// </summary>
        /// <param name="dataSourceName">Identification key such as a column name of a DataTable</param>
        /// <param name="numberFormatValue">Excel Number Format such as 'General', '@', etc.</param>
        public override void Add(string dataSourceName, string numberFormatValue)
        {
            //todo: columns cant have the same name....need to use a different collection type
            try
            {
                base.Add(dataSourceName, numberFormatValue);
            }
            catch { }
        }
    }
}
